﻿using System;
using System.Collections.Generic;

namespace yunio
{
    public class YunioParam
    {
        internal IDictionary<string, string> Parameters;
        internal YunioParam()
        {
            this.Parameters= new Dictionary<string, string>();
        }

        public static YunioParam New(string name, string value)
        {
            return new YunioParam().Set(name, value);
        }

        public YunioParam Set(string name, string value)
        {
            this.Parameters[name]= value;
            return this;
        }
        public IEnumerable<KeyValuePair<string, string>> LoopParam()
        {
            return this.Parameters;
        }
    }
}
